package com.piz.service.common;

import com.piz.dao.common.GenericException;

public class UnexpectedServiceException extends GenericException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String msg;

	/**
	 * @param message
	 * @param cause
	 */
	public UnexpectedServiceException(String message, Throwable cause) {
		super(message, cause);
		msg = message;
	}

	/**
	 * @param message
	 */
	public UnexpectedServiceException(String message) {
		super(message);
		msg = message;
	}
	
	@Override
	public String toString() {
		return super.toString()+"\n"+" Exception in Service  :  =  "+msg;
	}

}
